package com.gk.init.control
{
	import com.gk.init.control.event.InitUserDataEvent;
	import com.gk.init.control.event.UserLoginEvent;
	
	import org.robotlegs.mvcs.Command;
	
	public class InitStartUpCommand extends Command
	{
		public function InitStartUpCommand()
		{
			super();
		}
		
		override public function execute():void
		{
			
			
			commandMap.mapEvent(UserLoginEvent.INIT_USER_LOGIN,UserLoginCommand,UserLoginEvent,true);
			commandMap.mapEvent(InitUserDataEvent.INIT_USER_DATA,InitUserDataCommand,InitUserDataEvent,true);
			
			dispatch(new UserLoginEvent(UserLoginEvent.INIT_USER_LOGIN));
		}
		
	}
}